use crate::utils;
use lazy_static::lazy_static;
use std::net::SocketAddr;
use volo_gen::wmplatform3;

pub mod license;
pub mod verify;

lazy_static! {
    pub static ref LICENSECLIENT: wmplatform3::LicenseServiceClient = {
        let addr: SocketAddr = utils::config::CONFIG.volo_addr().parse().unwrap();
        wmplatform3::LicenseServiceClientBuilder::new("license")
            .address(addr)
            .build()
    };
    pub static ref VERIFYCLIENT: wmplatform3::VerifyServiceClient = {
        let addr: SocketAddr = utils::config::CONFIG.volo_addr().parse().unwrap();
        wmplatform3::VerifyServiceClientBuilder::new("verify")
            .address(addr)
            .build()
    };
}
